import { Component } from '@angular/core';

@Component({
  selector: 'app-demo4',
  templateUrl: './demo4.component.html'
})
export class Demo4Component {
  value: Date;

  disabledHour = (hour) => {
    if(hour === 0 || hour === 2) {
      return true;
    }
  }
  disabledMinute = (hour, minute) => {
    if(hour === 3 && minute < 30) {
      return true;
    }
  }
  disabledSecond = (hour, minute, second) => {
    if(minute < 30 && second > 30) {
      return true;
    }
  }
}
